<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>03_动画的复合属性</title>
    <style>
        .outer {
            width: 1000px;
            height: 100px;
            border: 1px solid black;
        }
        @keyframes atguigu {
            from {
                
            }
            to {
                transform: translate(900px) rotate(360deg);
                background-color: purple;
                border-radius: 50%;
            }
        }
        .inner {
            width: 100px;
            height: 100px;
            background-color: deepskyblue;
            /*animation: 动画名字 停留状态 动画持续时间 动画开始延时 动画方向 移动速度的方式 循环次数*/
            animation: atguigu forwards 2s 0.3s alternate-reverse ease-in 2;
        }
        .outer:hover .inner {
            /* 动画的播放状态  鼠标悬浮时动画暂停*/
            animation-play-state: paused;
        }
        
    </style>
</head>
<body>
    <div class="outer">
        <div class="inner"></div>
    </div>
</body>
</html>